home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / SDLASFM.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  3KB  |  93 lines

  1. /*****************************************************************************
  2. * sdlasfm.h    WANPIPE(tm) Multiprotocol WAN Link Driver.
  3. *        Definitions for the SDLA Firmware Module (SFM).
  4. *
  5. * Author:    Gene Kozin    <74604.152@compuserve.com>
  6. *
  7. * Copyright:    (c) 1995-1996 Sangoma Technologies Inc.
  8. *
  9. *        This program is free software; you can redistribute it and/or
  10. *        modify it under the terms of the GNU General Public License
  11. *        as published by the Free Software Foundation; either version
  12. *        2 of the License, or (at your option) any later version.
  13. * ============================================================================
  14. * Dec 11, 1996    Gene Kozin    Cosmetic changes
  15. * Apr 16, 1996    Gene Kozin    Changed adapter & firmware IDs. Version 2
  16. * Dec 15, 1995    Gene Kozin    Structures chaned
  17. * Nov 09, 1995    Gene Kozin    Initial version.
  18. *****************************************************************************/
  19. #ifndef    _SDLASFM_H
  20. #define    _SDLASFM_H
  21.  
  22. /****** Defines *************************************************************/
  23.  
  24. #define    SFM_VERSION    2
  25. #define    SFM_SIGNATURE    "SFM - Sangoma SDLA Firmware Module"
  26.  
  27. /* min/max */
  28. #define    SFM_IMAGE_SIZE    0x8000    /* max size of SDLA code image file */
  29. #define    SFM_DESCR_LEN    256    /* max length of description string */
  30. #define    SFM_MAX_SDLA    16    /* max number of compatible adapters */
  31.  
  32. /* Adapter types */
  33. #define SDLA_S502A    5020
  34. #define SDLA_S502E    5021
  35. #define SDLA_S503    5030
  36. #define SDLA_S508    5080
  37. #define SDLA_S507    5070
  38. #define SDLA_S509    5090
  39.  
  40. /* Firmware identification numbers:
  41.  *    0  ..  999    Test & Diagnostics
  42.  *  1000 .. 1999    Streaming HDLC
  43.  *  2000 .. 2999    Bisync
  44.  *  3000 .. 3999    SDLC
  45.  *  4000 .. 4999    HDLC
  46.  *  5000 .. 5999    X.25
  47.  *  6000 .. 6999    Frame Relay
  48.  *  7000 .. 7999    PPP
  49.  */
  50. #define    SFID_CALIB502     200
  51. #define    SFID_STRM502    1200
  52. #define    SFID_STRM508    1800
  53. #define    SFID_BSC502    2200
  54. #define    SFID_SDLC502    3200
  55. #define    SFID_HDLC502    4200
  56. #define    SFID_X25_502    5200
  57. #define    SFID_X25_508    5800
  58. #define    SFID_FR502    6200
  59. #define    SFID_FR508    6800
  60. #define    SFID_PPP502    7200
  61. #define    SFID_PPP508    7800
  62.  
  63. /****** Data Types **********************************************************/
  64.  
  65. typedef struct    sfm_info        /* firmware module information */
  66. {
  67.     unsigned short    codeid;        /* firmware ID */
  68.     unsigned short    version;    /* firmaware version number */
  69.     unsigned short    adapter[SFM_MAX_SDLA]; /* compatible adapter types */
  70.     unsigned long    memsize;    /* minimum memory size */
  71.     unsigned short    reserved[2];    /* reserved */
  72.     unsigned short    startoffs;    /* entry point offset */
  73.     unsigned short    winoffs;    /* dual-port memory window offset */
  74.     unsigned short    codeoffs;    /* code load offset */
  75.     unsigned short    codesize;    /* code size */
  76.     unsigned short    dataoffs;    /* configuration data load offset */
  77.     unsigned short    datasize;    /* configuration data size */
  78. } sfm_info_t;
  79.  
  80. typedef struct sfm            /* SDLA firmware file structire */
  81. {
  82.     char        signature[80];    /* SFM file signature */
  83.     unsigned short    version;    /* file format version */
  84.     unsigned short    checksum;    /* info + image */
  85.     unsigned short    reserved[6];    /* reserved */
  86.     char        descr[SFM_DESCR_LEN]; /* description string */
  87.     sfm_info_t    info;        /* firmware module info */
  88.     unsigned char    image[1];    /* code image (variable size) */
  89. } sfm_t;
  90.  
  91. #endif    /* _SDLASFM_H */
  92.  
  93.